package Chuong04;

import javax.swing.*;

public class Bai_02 extends JFrame{
	public Bai_02(){
		setSize(400, 200);
		JPanel p = new JPanel();
		JButton btnClick = new JButton("I'am a Swing button!");
		JLabel lblClick = new JLabel("Number of button click: 0");
		
		btnClick.setLocation(40, 20);
		lblClick.setLocation(80, 20);
		p.add(btnClick);
		p.add(lblClick);
		add(p);
		
	}
	public static void main(String[] args) {
		Bai_02 frm = new Bai_02();
		frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frm.setVisible(true);
	}

}
